package com.wang.service;

import com.wang.domain.SmallCategory;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author WangZai
 * @since 2023-05-06
 */
public interface SmallCategoryService extends IService<SmallCategory> {

    boolean addSmallCategory(SmallCategory category);

    boolean deleteSmallCategoryById(Integer categoryId);

    boolean deleteSmallCategoryByLargeCategoryId(Integer largeCategoryId);

    SmallCategory getSmallCategoryById(Integer categoryId);

    SmallCategory getSmallCategoryByName(String categoryName);

    List<SmallCategory> getSmallCategoryListByLargeCategoryId(Integer largeCategoryId);

}
